﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace System.Collections {
	public static class Pagination {
		public static PagedList<T> ToPagedList<T>(this IQueryable<T> source, int index) {
			return new PagedList<T>(source, index, 10);
		}

		public static PagedList<T> ToPagedList<T>(this IQueryable<T> source, int index, int pageSize) {
			return new PagedList<T>(source, index, pageSize);
		}
	}
}